package com.totoro.mall.mall_buyer.exception;

import com.totoro.mall.mall_buyer.enums.ResultEnum;

/**
 * 系统自定义异常
 * Created by Niki on 2018/4/12 8:16
 */
public class SellException extends Throwable {
    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
